/**
 * 请求url集合
 */
const baseUrl = 'https://easy-mock.com/mock/5b7eaa36870d416df881a430/system/';
const localUrl = 'http://118.25.208.36/dsSystem/'; // 远程地址
// const localUrl = 'http://localhost:3000/dsSystem/' // 本地地址

const requestUrl = {
  homeUrl: baseUrl + 'getHome', // 首页的url
  registerUser: localUrl + 'user/register', // 用户注册的url
  userLogin: localUrl + 'user/login',
  getCurrentUser: localUrl + 'user/getCurrentUser',
  saveMemberInfo: localUrl + 'user/saveMemberInfo',
  // 获取验证码
  getCaptcha: localUrl + 'user/getCaptcha',
  writeOffUser: localUrl + 'user/writeOffUser',
  loginOut: localUrl + 'user/loginOut',
  searchGoods: localUrl + 'goods/searchGoods', // 搜索商品
  goodsDetail: localUrl + 'goods/detail',
  getCategory: localUrl + 'goods/getCategory',
  getCategorySub: localUrl + 'goods/getCategorySub',
  getSubGoods: localUrl + 'goods/getSubGoods',
  // 获取原始数据
  getAllCategory: localUrl + 'category/allCategory',
  getAllSub: localUrl + 'categorySub/allSub',
  getAllGoods: localUrl + 'goods/allGoods',
  // 地址管理
  addAddress: localUrl + 'address/add',
  editAddress: localUrl + 'address/edit',
  deleteAddress: localUrl + 'address/delete',
  getAddressList: localUrl + 'address/get', // 获取地址list
  getAddressInfo: localUrl + 'address/getAddressInfo', // 获取单个地址的信息

  // 评论
  addComment: localUrl + 'comment/add',
  getComment: localUrl + 'comment/get',
  deleteComment: localUrl + 'comment/delete',
}
export default requestUrl;
